package com.btpn.custody.web.m002.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.btpn.custody.web.m002.model.AllAddress;
import com.opensymphony.xwork2.ActionSupport;

@ParentPackage(value = "custody")
@Results({
	@Result(name="input", type="redirectAction", params = {"actionName", "checklist"} )
})
public class DownloadDataAction extends ActionSupport {

	private static final long serialVersionUID = 4364780592456216536L;

	private String masterSid;
	private AllAddress destAddress;
	
	@Action(value = "/fillMissData", results = { 
			@Result(name = "success", type="redirectAction", params = {"actionName", "checklistDetail", "dataId", "${masterSid}"} )
	})
	public String searchChecklist() throws Exception {
		System.out.println("HERE");
		
		return SUCCESS;
	}

	public String getMasterSid() {
		return masterSid;
	}

	public void setMasterSid(String masterSid) {
		this.masterSid = masterSid;
	}

	public AllAddress getDestAddress() {
		return destAddress;
	}

	public void setDestAddress(AllAddress destAddress) {
		this.destAddress = destAddress;
	}
}
